<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
    <!-- 引入JQuery -->
    <script src="js/jquery-3.4.1.min.js" th:src="@{/js/jquery-3.4.1.min.js}"></script>
    <!-- 引入BootStrap-->
    <link href="css/bootstrap/css/bootstrap.min.css" th:href="@{/css/bootstrap/css/bootstrap.min.css}" rel="stylesheet"/>
    <script src="css/bootstrap/js/bootstrap.min.js" th:src="@{/css/bootstrap/js/bootstrap.min.js}"></script>
</head>
<body>
<div class="header-main">
    <div id="head" th:include="head.html :: common_head"></div>
</div>
<br>
<br>
<h1>
    新增用户
</h1>
<div class="container-fluid">
    <div class="row">
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <h2>
                <a class="btn btn-sm btn-success" th:href="@{/selectUser}">返回用户页面</a>
            </h2>
            <!--新增员工的表单-->
            <form th:action="@{/addUser}">
                <div class="form-group">
                    <label>用户名</label>
                    <input type="text"  name="user_name" class="form-control" placeholder="用户名字">
                </div>
                <div class="form-group">
                    <label>用户密码</label>
                    <input type="password" name="user_passwd" class="form-control" placeholder="用户密码">
                </div>
                <div class="form-group">
                    <label>是否是管理员</label><br/>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="user_ismanager"  value="1">
                        <label class="form-check-label">是</label>
                    </div>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="user_ismanager"  value="0">
                        <label class="form-check-label">否</label>
                    </div>
                </div>
                <button type="submit" class="btn btn-primary">添加</button>
            </form>
        </main>
    </div>
</div>
</form>
</body>
</html>
